home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 011 / respro.arc / RESPRO.DOC < prev   
Encoding:
Text File  |  1986-11-14  |  5.9 KB  |  124 lines

  1.                          RESPRO.DOC v1.0
  2.                             11/14/86
  3. Eric Gans
  4. French Department, UCLA
  5. Los Angeles CA, 90024
  6.  
  7.      If  like most DOS users you have filled your RAM with memory 
  8. resident  programs,  RESPRO  is for you.  RESPRO  allows  you  to 
  9. disable and reactivate memory-resident programs at any time, from 
  10. within  any application.  It also permits you to remove the  last 
  11. program  loaded regardless of what it says in its user manual  or 
  12. DOC  file.  This too can be done from within other  applications, 
  13. but  memory errors may result if these are themselves dynamically 
  14. requesting memory.
  15.  
  16.      RESPRO also includes an "uncrash" feature that allows you to 
  17. exit  a "hung" program under most circumstances without having to 
  18. reboot your computer.
  19.  
  20.  
  21.               How Do Memory-Resident Programs Work?
  22.  
  23.      Memory-resident  programs are loaded like any  others;  they 
  24. remain  resident  because  DOS allows them  to  keep  the  memory 
  25. originally  allocated  to  them.  If you load a  series  of  such 
  26. programs, they fill your RAM from the bottom up.
  27.  
  28.      But  residing  is only useful if these programs  can  remain 
  29. active.  They  accomplish  this by capturing "interrupt  vectors" 
  30. used  by  various  computing  activities.  Most  commonly,  these 
  31. programs  look at one or both of the keyboard interrupts  (9  and 
  32. 16h)  to  see  if  you have typed  the  peculiar  combination  of 
  33. characters   that  triggers  the  program.   Since  most  of  the 
  34. characters  you type don't interest the resident  program,  after 
  35. checking it passes on control to the next program down the  list, 
  36. and  eventually  to  the BIOS that prints the  character  on  the 
  37. screen.
  38.  
  39.                       How Does RESPRO Work
  40.  
  41.      RESPRO  itself operates by capturing interrupt  vectors  and 
  42. using  its  time of control to record information concerning  the 
  43. interrupts  used  by  other  memory  resident  programs.   RESPRO 
  44. records  all  changes  that follow the loading  of  new  resident 
  45. programs.  This  allows it to disable/reactivate  memory-resident 
  46. programs   by   bypassing/restoring  these   programs'   captured 
  47. interrupts.
  48.  
  49.                  Set-Up and Memory Requirements
  50.  
  51.      To  use RESPRO effectively,  you should load it  before  any 
  52. other  memory-resident  programs (including those that  tell  you 
  53. they  should  be loaded first).  RESPRO will only "see"  programs 
  54. loaded  after  it;  it will always appear as #1 on  its  list  of 
  55. memory-resident programs.è
  56.      RESPRO occupies about 10 K of memory, largely for buffers to 
  57. hold  interrupt  data.  It requires DOS 2.0 or higher;  it  could 
  58. probably be adapted for DOS 1, if anyone is still running it.
  59.  
  60.                         RESPRO Operation
  61.  
  62.      RESPRO  is  evoked  by  typing  Alt  `  (grave  accent).  On 
  63. evocation,  and after any command,  it displays a list of memory-
  64. resident programs,  their load addresses and the number of  bytes 
  65. they occupy.
  66.  
  67.      The command line permits the following operations:
  68.      
  69.      (V)erbose  toggle:  Entering "v" toggles a mode that permits 
  70. you  to see the interrupts captured by each resident program  and 
  71. their  addresses  (segment:offset).  This  should be  of  use  to 
  72. programmers.
  73.  
  74.      (R)emove  last:  This will remove the last resident  program 
  75. from memory,  freeing the memory for other  applications.  RESPRO 
  76. will  not  allow  you to perform this operation  from  within  an 
  77. application  that has changed some of the interrupt vectors  used 
  78. in  the  program(s) you wish to remove,  since on  exiting  these 
  79. vectors  will  be reset to locations in the killed  program  that 
  80. will  eventually be overwritten.  But because RESPRO cannot check 
  81. for the future memory demands of your applications,  this command 
  82. should always be used with caution from within other programs.
  83.  
  84.      (D)isable  #:  Entering "d3" will disable program  #3.  This 
  85. operation may be performed without danger at any time,  since  it 
  86. does not remove the program from memory.  A disabled program will 
  87. not  use  processor  time or perform  any  other  function.   Any 
  88. program thus disabled can be reactivated with the (A) command.
  89.  
  90.      (A)ctivate  #:  Enter  "a3" to reactivate  the  program  you 
  91. disabled  with "d3".   This operation too can be performed safely 
  92. at any time.
  93.  
  94.      Type <ESC> to exit. (No CR is necessary.)
  95.  
  96.      If you disable RESPRO it will remain in memory but no longer 
  97. be  operative,  and  you will no longer be able to  call  up  its 
  98. screen.  This is the one (obvious) exception to the rule that all 
  99. disabled programs can be reactivated.
  100.  
  101.      You  can change the "`" character (scan code 41) by entering 
  102. some  other  scan code at  location  103H.  (Technical  Reference 
  103. manuals  and  the  like contain tables of these codes.)   DO  NOT 
  104. enter the ASCII value of the new character!
  105.  
  106.      A  few  technically-oriented applications that  capture  the 
  107. keyboard interrupts for themselves may not let you call up RESPRO 
  108. while  they  are running.   This will not be the case for  normal 
  109. user  programs  like  word-processors,   spreadsheets,   database èprograms, or BASIC.
  110.  
  111.                          Uncrash Feature
  112.  
  113.      Since  RESPRO  keeps interrupt tables,  it can  handle  this 
  114. function  more gracefully than other such programs.   If you  get 
  115. caught in an endless loop but your keyboard is still  alive,  you 
  116. can  exit  to  DOS  or the  "parent"  process  (e.g.,  DEBUG)  by 
  117. simultaneously  pressing the CAPS LOCK and the SCROLL LOCK  keys.  
  118. (This  operation  is independent of the current status  of  these 
  119. keys.)  We can't absolutely guarantee that everything will be all 
  120. right on exit,  but this feature may allow you to save files that 
  121. would otherwise be lost.
  122.  
  123.      Please inform me if you have any problems using RESPRO.
  124.